package com.kehutong.crm.dao;

import org.coraframework.orm.annotation.Dao;
import org.coraframework.orm.annotation.UpdateMapper;
import org.coraframework.orm.jdbc.execute.Condition;

/**
 * 预测统计dao
 *
 * @author wupengfei
 */
@Dao
public interface ForecastStatisticsDao {

    @UpdateMapper(
            mainDB = true,
            sql = "update t_forecast_statistics set totalNumber = totalNumber + 1, requireNumber = requireNumber + 1 where ${};"
    )
    Integer incrementNumber(Condition... condition);

    @UpdateMapper(
            mainDB = true,
            sql = "update t_forecast_statistics set totalNumber = totalNumber + 1 where ${};"
    )
    Integer incrementTotalNumber(Condition... condition);

}
